//
//  GLBaseVC.m
//  Demo
//
//  Created by lishuai on 15/8/13.
//  Copyright (c) 2015年 lishuai. All rights reserved.
//

#import "GLBaseVC.h"

@implementation GLBaseVC

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.hidesBottomBarWhenPushed = YES;
    }
    return self;
}

- (UIView *)backBarButtonItemView {
    UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [backBtn setShowsTouchWhenHighlighted:YES];
    backBtn.frame = CGRectMake(0, 0, 40, 40);
    
    backBtn.imageEdgeInsets = UIEdgeInsetsMake(0, -20, 0, 0);
    
    [backBtn setImage:[UIImage imageNamed:@"nav_back"] forState:UIControlStateNormal];
    
    return backBtn;
}

@end
